#pragma once
#include "apThread.h"
#include "PassiveSocket.h"
#include <string>

class apHTTPProxy : public apThread
{
public:
	apHTTPProxy(void);
	~apHTTPProxy(void);
	bool Init(const char *proxy_ipaddr, int proxy_port);
	bool is_running(){return !isexit();}
protected:
	virtual void thread_proc();
private:
	CPassiveSocket	m_server;
	std::string		m_proxy_addr;
	int				m_proxy_port;
};
